package main.demonutils.io;

import main.model.hexisland.HexIsland;

import java.io.File;

@Deprecated
public interface IOController {


    public void saveIsland(HexIsland hexIsland);

    public void loadIsland(HexIsland hexIsland);



    public File[] getDirContent();
	
	public void setEdited(boolean edited);
	
	public boolean getEdited();

	public void addExtension(String extension);
	 
	public void removeExtension(String extension);
	
	public File getCurrentFile();
	
	/**
	 * Uses the file chooser dialog to pick a directory. 
	 * @return The directory chosen by the user. null if an invalid choice.
	 */
	public File chooseDirectory();

	/**
	 * Ask the user for a file name and if acceptable, return the path for the new file.
	 * <p>
	 * If the file exists, ask if it should be over written.
	 * 
	 * @param directory
	 * @param type
	 * @return
	 */
	public File prepareNewFileLocation(File directory, String type);

	/**
	 * Gets the name of the current directory.
	 * 
	 * @return The name of the current directory, if it exists, otherwise null.
	 */
	public File getCurrentDir();
	
	public String getCurrentDirPathString();
	
	public boolean deleteFile(File f);

}
